import request from '@/utils/request'

// 获取一级菜单菜单
export const getRouters = () => {
  return request({
    url: '/getRouters',
    method: 'get'
  })
}

// 根据一级菜单获取二级菜单
export const getSonRouters = (menuId) => {
  return request({
    url: '/getSonRouters?menuId=' + menuId,
    method: 'get'
  })
}
